﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="Quanlytailieu.aspx.cs" Inherits="Quanlytailieu" %>

<%@ Register src="Controls/ucLeftgiaovien.ascx" tagname="ucLeftgiaovien" tagprefix="uc1" %>
<%@ Register src="Controls/ucToprightphuhuynh.ascx" tagname="ucToprightphuhuynh" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="Maincontent" Runat="Server">
    <div class="left-incontent">
        
        <uc1:ucLeftgiaovien ID="ucLeftgiaovien1" runat="server" />
        
    </div>
    <div class="right-incontent">
        <uc2:ucToprightphuhuynh ID="ucToprightphuhuynh1" runat="server" />
        <fieldset>
            <legend>DANH SÁCH TÀI LIỆU</legend><br />
                <asp:HyperLink ID="hpladd" NavigateUrl="themsuatailieu.aspx?update=0" ImageUrl="~/images/add.png" runat="server"></asp:HyperLink>
                <asp:GridView ID="gvdocument" runat="server" AllowPaging="True" 
                        AutoGenerateColumns="False" CssClass="general" Width="100%" >
                    <Columns>
                        <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:Button ID="btnxoa" runat="server" Text="Xóa" onclick="btnxoa_Click" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="chkChon" runat="server" />
                        </ItemTemplate>
                    
                            <HeaderStyle Width="10%" />
                    
                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                    </asp:TemplateField>
                        <asp:BoundField DataField="id" HeaderText="ID">
                        <HeaderStyle Width="10%" />
                        <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:BoundField>
                        <asp:BoundField DataField="title_textbooks" HeaderText="Tiêu đề" >
                        <HeaderStyle Width="55%" />
                        <ItemStyle Width="55%" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="Dowload">
                            <ItemTemplate>
                                <asp:HyperLink ID="hplhref" runat="server" NavigateUrl='<%# "Uploads/Document/"+Eval("href_textbooks") %>'>Tải về</asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle Width="15%" />
                            <ItemStyle HorizontalAlign="Center" Width="15%" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="Sửa">
                            <ItemTemplate>
                                <asp:HyperLink ID="HyperLink1" runat="server" 
                                    NavigateUrl='<%# "themsuatailieu.aspx?update=1&id="+Eval("id") %>' ImageUrl='~/images/edit.png'></asp:HyperLink>
                            </ItemTemplate>
                            <HeaderStyle Width="10%" />
                            <ItemStyle HorizontalAlign="Center" Width="10%" />
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
        </fieldset>
    </div>
</asp:Content>

